The Clips under this section use the Windows FTP.exe program. If the FTP program is not installed on your computer, you will not be able to run the Clips.
* FTP server setup:
Use this Clip to set the parameters of the remote server you want to connect to. It is automatically called by the other Clips if no remote server was defined.
* Download files:
Use this Clip to download one or more files from the specified remote computer. You can choose the folder where files should be downloaded to, the remote folder containing the files, the type of transfer (use Binary for .zip, .exe, and image files; use Text for Web pages and other text files), and the names of the files to download (each name, which may contain wildcards, must be entered on a separate line). Note that you should use forward slashes instead of backslashes when specifying a remote path with multiple directories. If you are downloading text files, NoteTab will offer to open the files for you once the FTP operation is over.
* Upload files:
Use this Clip to upload one or more files from your computer to the specified remote server. You can choose the remote folder where files should be downloaded to, the local folder containing your files, the type of transfer (use Binary for .zip, .exe, and image files; use Text for Web pages and other text files), and the names of the files to download (each name, which may contain wildcards, must be entered on a separate line). Note that you should use forward slashes instead of backslashes when specifying a remote path with multiple directories.
* Delete FTP files:
Use this Clip to delete one or more files from the specified remote server. You can choose the remote folder which contains your files, and the names of the files to delete (each name, which may contain wildcards, must be entered on a separate line). Note that you should use forward slashes instead of backslashes when specifying a remote path with multiple directories. Use this command with care are you cannot "undo" this operation.
* Open FTP document:
Use this Clip to open a remote document in NoteTab. You can specify the path with the filename (e.g. homepage/html/index.htm). The Clip will download the remote file into the Windows temporary folder and open it in NoteTab. Note that you cannot use this method to simultaneously edit two files with the same name (from different remote directories).
* Save FTP document:
Saves the current NoteTab document to the remote server. You can specify the remote directory that should receive the file (leave it blank to save to the root directory).
^!Prompt The Windows FTP.exe program was not found on your computer. Please install it before using this command.
^!Goto Exit
H=";"
H="Download files"
^!IfTrue ^$IsEmpty("^%Computer%")$ ^!Clip "FTP server setup"
^!Clip "Set default folders"
^!Set %FileType%=^?{File type==_Text^=ascii|Binary^=binary}; %LocalFolder%=^?{(T=D)Download files to which folder?=^%LocalFolder%}; %RemoteFolder%=^?{Remote folder name=^%RemoteFolder%}; %List%=^?{(T=M)Files to download (one per line)}
^!Clip "FormatList" get
^!Clip "Folder setup"
^!Clip "Run FTP"
^!If ^$StrPos(binary;"%FileType%";False)$ > 0 End
^!IfFalse ^?{Open downloaded files in NoteTab?==_Yes|No} End
^!Open ^%OpenList%
H="Upload files"
^!IfTrue ^$IsEmpty("^%Computer%")$ ^!Clip "FTP server setup"
^!Clip "Set default folders"
^!Set %FileType%=^?{File type==_Text^=ascii|Binary^=binary}; %LocalFolder%=^?{(T=D)Local folder with files to upload=^%LocalFolder%}; %RemoteFolder%=^?{Upload files to which remote folder?=^%RemoteFolder%}; %List%=^?{(T=M)Files to upload (one per line)}
^!Clip "FormatList" put
^!Clip "Folder setup"
^!Clip "Run FTP"
H="Delete FTP files"
^!IfTrue ^$IsEmpty("^%Computer%")$ ^!Clip "FTP server setup"
^!Clip "Set default folders"
^!Set %RemoteFolder%=^?{Remote folder containing files to delete?=^%RemoteFolder%}; %List%=^?{(T=M)Files to delete (one per line)}
^!Clip "FormatList" delete
^!Clip "Folder setup" IgnoreLocal
^!Clip "Run FTP"
H=";"
H="Open FTP document"
;^!SetDebug On
^!IfTrue ^$IsEmpty("^%Computer%")$ ^!Clip "FTP server setup"
^!Clip "Set default folders"
^!Set %FileType%=ascii; %LocalFolder%=^$GetTmpPath$; %FileName%=^?{FTP Document to open}
^!Set %Host%=^?{Name or IP of remote computer (optional)=^%Host%}; %ScriptName%=^?{(T=O;F="Script files (*.scr;*.txt)|*.scr;*.txt")FTP Script file (optional)=^%ScriptName%}; %BufferSize%=^?{Transfer buffer size in bytes (optional)=^%BufferSize%}; %Options%=^?{(T=A;H=5)Command-Line options=Surpress display of remote server responses^=-v|Surpress auto-login upon initial connection^=-n|_Turn off interactive prompting during multiple file transfers^=-i|Enable debugging (displays all FTP commands)^=-d|Disable filename globbing (disables use of wildcards)^=-g}